class NodeKey {
    Node n;
    int key;

    public NodeKey(Node n, int key) {
        this.n = n;
        this.key = key;
    }

    public Node getN() {
        return n;
    }

    public void setN(Node n) {
        this.n = n;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }
}

